﻿@model Financas.Models.UsuarioModel

    @using (Html.BeginForm("Adiciona", "Usuario", FormMethod.Post))


    { 

        @Html.ValidationMessage("usuario.Invalido")
        @Html.LabelFor(u => u.Nome, "Nome:")
        @Html.TextBoxFor(u => u.Nome, new { @class = "form-control" })
        @Html.ValidationMessageFor(u => u.Nome)


        @Html.LabelFor(u => u.Email, "E-mail")
        @Html.TextBoxFor(u => u.Email, new { @class = "form-control" })
        @Html.ValidationMessageFor(u => u.Email)

        @Html.LabelFor(u => u.Senha, "Senha:")
        @Html.PasswordFor(u => u.Senha, new { @class = "form-control" })
        @Html.ValidationMessageFor(u => u.Senha)

        @Html.LabelFor(u => u.ConfirmacaoSenha, "Confirme sua senha:")
        @Html.PasswordFor(u => u.ConfirmacaoSenha, new { @class = "form-control" })
        @Html.ValidationMessageFor(u => u.ConfirmacaoSenha)


        <input type= "submit" value="Enviar"/>
    }
